﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;

namespace FANUC.API.Controllers
{
    public class CustomerVM
    {
        public int id { get; set; }
        public string name { get; set; }
    }
    public class fanucUnitMeasurementHistoryController : ApiController
    {
        [HttpPost]
        public IHttpActionResult create(CustomerVM customer)
        {
            customer.id = 2;
            return Ok(customer);
        }

        [HttpGet]
        public IHttpActionResult select(int id)
        {
            CustomerVM data = new CustomerVM();
            data.id = 1;
            data.name = "X";
            return Ok(data);
        }
    }
}
